<% title_tag t("users.register_user") %>
<div class="row">
  <div class="col"></div>
  <div class="col-lg-6">
    <div class="card card-lg">
      <div class="card-body">
        <div class="card-title">
          <%= t("users.register_user") %>
          <div class="actions hide-ios">
            <%= link_to t("common.login"), new_session_path(resource_name) %>
          </div>
        </div>
        <%= form_for resource, as: resource_name, url: registration_path(resource_name), remote: true do |f| %>
          <div class="form-group">
            <%= f.text_field :login, class: "form-control form-control-lg", placeholder: t("users.login"), hint: t("users.suggest_using_twitter_id") %>
          </div>
          <div class="form-group">
            <%= f.text_field :name, class: "form-control form-control-lg", placeholder: t("activerecord.attributes.user.name") %>
          </div>
          <div class="form-group">
            <%= f.text_field :email, type: :email, class: "form-control form-control-lg", placeholder: t("activerecord.attributes.user.email") %>
          </div>
          <div class="form-group">
            <div class="custom-control custom-checkbox custom-checkbox-lg">
              <%= f.check_box :email_public, checked: true, class: "custom-control-input" %>
              <label for="user_email_public"  class="custom-control-label"><%= t("activerecord.attributes.user.email_public") %></label>
            </div>
          </div>
          <div class="form-group">
            <%= f.password_field :password, class: "form-control form-control-lg", placeholder: t("activerecord.attributes.user.password") %>
          </div>
          <div class="form-group">
            <%= f.password_field :password_confirmation, class: "form-control form-control-lg", placeholder: t("activerecord.attributes.user.password_confirmation") %>
          </div>
          <div class="form-group">
            <div class="input-group input-group-lg">
              <%= render "/shared/captcha_input" %>
            </div>
          </div>
          <div class="form-actions">
            <%= f.submit t('users.submit_new_user'), class: "btn btn-lg btn-primary", 'data-disable-with' => t("common.submitting") %>
          </div>
        <% end %>
      </div>
    </div>
  </div>
  <div class="col"></div>
</div>
